package com.pm.mapper.ledger;

import com.pm.entity.po.ledger.DataAnalysisTaskPo;
import com.pm.entity.po.ledger.Ledger;
import com.pm.entity.vo.TaskCompletionChildVo;
import com.pm.entity.vo.ledger.DataAnalysisVo;
import com.pm.entity.vo.ledger.LedgerVo;
import com.pm.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LedgerMapper extends BaseMapper<Ledger> {
    List<Ledger> getAllLedger(@Param("ledger") Ledger ledger);

    Boolean deleteLedger(Integer id);

    Integer addLedger(@Param("ledger") Ledger ledger);

    Boolean updateLedger(@Param("ledger") Ledger ledger);

    Ledger getLedgerId(Integer id);

    Double getLedgeScore(TaskCompletionChildVo TaskCompletionChildVo1);

    Double getTaskNum(DataAnalysisVo dataAnalysisVo);

    List<DataAnalysisTaskPo> getAnalysisTask();

    List<DataAnalysisTaskPo> getDataAnalysisTask(LedgerVo ledgerVo);
}